<div class="row no-margin">
    <div class="col-md-12">
        <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
            <?php
            $imgArr = array(
                array(
                    'img' => 'slider/6.jpg',
                    'title' => '',
                    'sub_title' => ''
                ),
                array(
                    'img' => 'slider/1.jpg',
                    'title' => '',
                    'sub_title' => ''
                ),
                array(
                    'img' => 'slider/2.jpg',
                    'title' => '',
                    'sub_title' => ''
                ),
                array(
                    'img' => 'slider/3.jpg',
                    'title' => '',
                    'sub_title' => ''
                ),
                array(
                    'img' => 'slider/4.jpg',
                    'title' => '',
                    'sub_title' => ''
                ),
                array(
                    'img' => 'slider/5.jpg',
                    'title' => '',
                    'sub_title' => ''
                )
            );
            ?>
            <!-- Indicators -->
            <ol class="carousel-indicators">
                <?php $i = 0; ?>
                <?php foreach ($imgArr as $img): ?>
                    <li data-target="#carousel-example-generic" 
                        data-slide-to="<?php echo $i ?>" 
                        class="<?php echo $i == 0 ? 'active' : '' ?>">
                    </li>
                    <?php $i++; ?>
                <?php endforeach; ?>
            </ol>

            <!-- Wrapper for slides -->
            <div class="carousel-inner" role="listbox">
                <?php $i = 0; ?>
                <?php foreach ($imgArr as $img): ?>

                    <div class="item <?php echo $i == 0 ? 'active' : '' ?>">
                        <?php echo $this->Html->image($img['img'],array('width'=>'100%')); ?>
                        <div class="carousel-caption">
                            <h3><?php echo $img['title'];?></h3>
                            <p><?php echo $img['sub_title'];?></p>
                        </div>
                    </div>
                    <?php $i++; ?>
                <?php endforeach; ?>                
            </div>

            <!-- Controls -->
            <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
                <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
                <span class="sr-only">Previous</span>
            </a>
            <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
                <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
                <span class="sr-only">Next</span>
            </a>
        </div>
    </div>
</div>
<div class="row no-margin">
    <h4 class="uppercase border-bottom c-green"><?php echo __d($local, 'Projects') ?></h4>
    <div class="span12 no-margin">
        <div class="our-listing owl-carousel">
            <?php foreach ($datas as $a): ?>   
                <div class="list-item">
                    <div class="list-thumb">
                        <div class="title">
                            <?php echo $a['ProjectDetail'][0]['title'] ?>
                        </div>
                        <?php echo $this->Html->image($a['Project']['default_pic'], array('height' => '130px', 'width' => '100%')); ?>
                    </div> <!-- /.list-thumb -->
                    <div class="list-content">
                        <?php $lang = 'name_' . strtolower($a['ProjectDetail'][0]['language']); ?>
                        <?php $adds = $a['Amphur'][$lang] . ', ' . $a['Amphur']['Province'][$lang]; ?>
                        <?php echo $a['PropertyType'][$lang] . ', ' . $adds ?>
                        <?php echo $this->Html->link('View Property', '/Projects/view/' . $a['Project']['id'], array('class' => 'price-btn', 'target' => '_blank')) ?>
                    </div>
                </div> <!-- /.list-item -->
            <?php endforeach; ?> 
        </div> <!-- /.our-listing -->
    </div>
</div>
<div class="row">
    <div class="span5">
        <!--        <h4 class="uppercase border-bottom c-green">Land & Investment</h4>-->
    </div>
</div>